package org.example.messagewall.service;

import org.example.messagewall.mapper.MessageInfoMapper;
import org.example.messagewall.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/7/25
 * Time: 17:34
 */
@Service
public class MessageService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;

    public Integer insertMessage(MessageInfo messageInfo) {
        return messageInfoMapper.insertMessage(messageInfo);

    }

    public List<MessageInfo> getMessageInfoAll() {
        return messageInfoMapper.getMessageInfoAll();
    }
}
